<script type="text/template" id="template-news-news">
    <div class="MainContainer beanView news">
        <el-row class="breadcrumb">
            <el-breadcrumb separator-class="el-icon-arrow-right">
                <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
                <el-breadcrumb-item>新闻</el-breadcrumb-item>
            </el-breadcrumb>
        </el-row>
        <el-row class="bean">
            <el-col :span="10" :offset="2">
                <el-form :model="bean" :rules="rules" class="form" label-width="250px" size="small">
                    <el-form-item label="名称" prop="name">
                        <el-input v-model="bean.name"></el-input>
                    </el-form-item>
                    <el-form-item label="中文内容" prop="contentZh">
                        <el-input type="textarea" :rows="5" v-model="bean.contentZh"></el-input>
                    </el-form-item>
                    <el-form-item label="内容" prop="content">
                        <el-input type="textarea" :rows="5" v-model="bean.content"></el-input>
                    </el-form-item>
                    <el-form-item label="评分" prop="score">
                        <el-input v-model="bean.score"></el-input>
                    </el-form-item>
                    <el-form-item label="评分人数" prop="juryNum">
                        <el-input v-model="bean.juryNum"></el-input>
                    </el-form-item>
                    <el-form-item label="作者" prop="authorName">
                        <el-input v-model="bean.authorName"></el-input>
                    </el-form-item>
                    <el-form-item label="浏览量" prop="viewNum">
                        <el-input v-model="bean.viewNum"></el-input>
                    </el-form-item>
                    <el-form-item label="收藏数" prop="storeNum">
                        <el-input v-model="bean.storeNum"></el-input>
                    </el-form-item>
                    <el-form-item label="类型" prop="type">
                        <el-input v-model="bean.type"></el-input>
                    </el-form-item>
                    <el-form-item label="分类" prop="kindCode">
                        <el-input v-model="bean.kindCode"></el-input>
                    </el-form-item>
                    <el-form-item label="标签" prop="tag">
                        <el-input type="textarea" :rows="5" v-model="bean.tag"></el-input>
                    </el-form-item>
                    <el-form-item label="原文语言" prop="originalLang">
                        <el-input v-model="bean.originalLang"></el-input>
                    </el-form-item>
                    <el-form-item label="地区" prop="area">
                        <el-input v-model="bean.area"></el-input>
                    </el-form-item>
                    <el-form-item label="点赞数" prop="likeNum">
                        <el-input v-model="bean.likeNum"></el-input>
                    </el-form-item>
                    <el-form-item label="点踩数" prop="hateNum">
                        <el-input v-model="bean.hateNum"></el-input>
                    </el-form-item>
                    <el-form-item label="章节总数" prop="sectionNum">
                        <el-input v-model="bean.sectionNum"></el-input>
                    </el-form-item>
                    <el-form-item label="评论数" prop="commentNum">
                        <el-input v-model="bean.commentNum"></el-input>
                    </el-form-item>
                    <el-form-item label="是否精品" prop="isBoutique">
                        <el-input v-model="bean.isBoutique"></el-input>
                    </el-form-item>
                    <el-form-item label="是否独家" prop="isExclusive">
                        <el-input v-model="bean.isExclusive"></el-input>
                    </el-form-item>
                    <el-form-item label="是否原创" prop="isOriginal">
                        <el-input v-model="bean.isOriginal"></el-input>
                    </el-form-item>
                    <el-form-item label="描述" prop="description">
                        <el-input type="textarea" :rows="5" v-model="bean.description"></el-input>
                    </el-form-item>
                    <el-form-item label="备注" prop="remark">
                        <el-input v-model="bean.remark"></el-input>
                    </el-form-item>
                    <el-form-item label="参考文献" prop="referenceDocuments">
                        <el-input v-model="bean.referenceDocuments"></el-input>
                    </el-form-item>
                    <el-form-item label="相关文献" prop="relatedDocuments">
                        <el-input v-model="bean.relatedDocuments"></el-input>
                    </el-form-item>
                    <el-form-item label="img_uri" prop="imgUri">
                        <el-input type="textarea" :rows="5" v-model="bean.imgUri"></el-input>
                    </el-form-item>
                    <el-form-item label="原文Url" prop="originalUrl">
                        <el-input type="textarea" :rows="5" v-model="bean.originalUrl"></el-input>
                    </el-form-item>
                    <el-form-item label="原文平台" prop="originalPlatform">
                        <el-input v-model="bean.originalPlatform"></el-input>
                    </el-form-item>
                    <el-form-item label="数据来源url_ID" prop="fromUrlId">
                        <el-input v-model="bean.fromUrlId"></el-input>
                    </el-form-item>
                    <el-form-item label="数据原Url" prop="fromUrl">
                        <el-input type="textarea" :rows="5" v-model="bean.fromUrl"></el-input>
                    </el-form-item>
                    <el-form-item label="数据来源平台" prop="fromPlatform">
                        <el-input v-model="bean.fromPlatform"></el-input>
                    </el-form-item>
                    <el-form-item label="发布时间" prop="releaseTime">
                        <el-date-picker placeholder="选择日期" type="date"
                                        v-model="bean.releaseTime">
                        </el-date-picker>
                    </el-form-item>
                    <el-form-item label="是否审核过" prop="isChecked">
                        <el-input v-model="bean.isChecked"></el-input>
                    </el-form-item>
                    <el-form-item label="状态" prop="status">
                        <el-input v-model="bean.status"></el-input>
                    </el-form-item>
                    <el-form-item label="content_id" prop="contentId">
                        <el-input v-model="bean.contentId"></el-input>
                    </el-form-item>
                    <el-form-item label="name_id" prop="nameId">
                        <el-input v-model="bean.nameId"></el-input>
                    </el-form-item>
                    <el-form-item label="创建时间" prop="createTime">
                        <el-date-picker placeholder="选择日期" type="date"
                                        v-model="bean.createTime">
                        </el-date-picker>
                    </el-form-item>
                    <el-form-item label="上次更新时间" prop="updateTime">
                        <el-date-picker placeholder="选择日期" type="date"
                                        v-model="bean.updateTime">
                        </el-date-picker>
                    </el-form-item>
                    <el-form-item label="创建者" prop="creator">
                        <el-input v-model="bean.creator"></el-input>
                    </el-form-item>
                    <el-form-item label="上次更新者" prop="updator">
                        <el-input v-model="bean.updator"></el-input>
                    </el-form-item>

                    <el-form-item>
                        <el-button type="primary" @click="saveOrUpdate()">保存
                        </el-button>
                        <el-button onclick="history.back()">返回</el-button>
                    </el-form-item>
                </el-form>
            </el-col>
        </el-row>
    </div>
</script>
<script type="application/javascript">
    templateName = "news-news";
    templates[templateName] = Vue.extend({
        template: '#template-' + templateName,
        data: function () {
            return {
                beanName:"news",
                bean: {},
                temp: {},
                rules: solar.validatorRules,
            }
        },
        methods: {
            select: solar.baseMethods.select,
            deleteBean: solar.baseMethods.deleteBeanGoBack,
            saveOrUpdate: solar.baseMethods.saveOrUpdate,

        },
        mounted: function () {
            this.select();
        }

    });
</script>